# Maintainer: Ariadne Conill <ariadne@dereferenced.org>
pkgname=batctl
pkgver=2023.3
pkgrel=0
pkgdesc="B.A.T.M.A.N. advanced control and management tool"
url="https://www.open-mesh.org/"
arch="all"
license="GPL-2.0-only AND MIT"
makedepends="libnl3-dev linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.open-mesh.org/batman/releases/batman-adv-$pkgver/batctl-$pkgver.tar.gz"
options="!check" # No test suite.

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
050a65269f48a1d362ec71fdaa0af18e16d542c1b280e84c0c35b2bf48e22dc77f34bc200f8535b51ba929c77ea005caae96b61400b6cadf6fdbb2f4ae8ae129  batctl-2023.3.tar.gz
"
